import service from "./service";
import store from "../store/index";

/**
 * 登录
 */
export const login = (data) => {
  return service({
    url: `${store.state.api}/edu/user/login`,
    method: "post",
    data,
  });
};

/**
 * 获取短信验证码
 */
export const verifycode = (data) => {
  return service({
    url: `${store.state.api}/user/verifycode`,
    method: "post",
    data,
  });
};

/**
 * 获取短信验证码
 */
export const verify = (data) => {
  return service({
    url: `${store.state.api}/user/verify`,
    method: "post",
    data,
  });
};
